//
//  LYYTabBar.h
//  LYYWeibo
//
//  Created by lanou3g on 15/10/10.
//  Copyright (c) 2015年 李岩岩. All rights reserved.
//

#import <UIKit/UIKit.h>
@class LYYTabBar;

//1.声明代理协议
@protocol LYYTabBarDelegate <NSObject>

@optional
//2.声明代理方法
- (void)tabBar:(LYYTabBar *)tabBar didSelectedButtonFrom:(int)from to:(int)to;
- (void)tabBardidClickedPlusButton:(LYYTabBar *)tabBar;
@end

@interface LYYTabBar : UIView


- (void)addTabBarButtonWithItem:(UITabBarItem *)item;
//3.定义代理人属性 注意用assign修饰
@property (nonatomic, weak) id<LYYTabBarDelegate> delegate;


@end
